#ifndef CAFFEINE_GRAPHICS_COLOUR_HPP
#define CAFFEINE_GRAPHICS_COLOUR_HPP

#include "SFML/Graphics/Color.hpp"

namespace Graphics
{
	struct Colour
	{
		Colour( const unsigned short initR = 0, const unsigned short initG = 0, const unsigned short initB = 0, const unsigned short initA = 255 )
		{
			if ( initR > 255 )
			{
				r = 255;
			}
			else
			{
				r = initR;
			}

			if ( initG > 255 )
			{
				g = 255;
			}
			else
			{
				g = initG;
			}

			if ( initB > 255 )
			{
				b = 255;
			}
			else
			{
				b = initB;
			}

			if ( initA > 255 )
			{
				a = 255;
			}
			else
			{
				a = initA;
			}
		}

		Colour( const sf::Color &col )
		: r( col.r ), g( col.g ), b( col.b ), a( col.a )
		{
		}

		~Colour( void )
		{
		}

		unsigned short r;
		unsigned short g;
		unsigned short b;
		unsigned short a;
	};
}

#endif //CAFFEINE_GRAPHICS_COLOUR_HPP